var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.npc_ChangeController(3004302, "oid=367462", -100, 248, 1, -150, -50, 1, false, 0, false);
            cm.npc_ChangeController(3004303, "oid=367463", -12, 248, 1, -62, 38, 1, false, 0, false);
            cm.npc_ChangeController(3004300, "oid=367464", -510, 248, 1, -560, -460, 1, false, 0, false);
            cm.dispose()
        }
    }
};